<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>留言列表</title>
    <link rel="stylesheet" href="/js/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/css/common.css" media="all">
    <script src="/js/layui/layui.all.js"></script>
    <script src="/js/utils.js"></script>
</head>
<body>
<form class="layui-form" style="padding-right: 20px;">
    <div class="layui-form-item">
        <label class="layui-form-label">咨询人</label>
        <div class="layui-input-block">
            <input type="text" id="zxname" placeholder="暂无数据" readonly autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">电话</label>
        <div class="layui-input-block">
            <input type="text" id="zxphone" placeholder="暂无数据" readonly autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">QQ</label>
        <div class="layui-input-block">
            <input type="text" id="zxqq" placeholder="暂无数据" readonly autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">邮箱</label>
        <div class="layui-input-block">
            <input type="text" id="zxemail" placeholder="暂无数据" readonly autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">毕业学校</label>
        <div class="layui-input-block">
            <input type="text" id="school" placeholder="暂无数据" readonly autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">接待老师</label>
        <div class="layui-input-block">
            <input type="text" id="linkman" placeholder="暂无数据"readonly autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">咨询时间</label>
        <div class="layui-input-block">
            <input type="text" id="zxtime" placeholder="暂无数据" readonly autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">报名意向</label>
        <div class="layui-input-block">
            <input type="text" id="zxintent" placeholder="暂无数据" readonly autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <textarea placeholder="暂无数据" id="remark" class="layui-textarea" readonly></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="close">关闭</button>
        </div>
    </div>
</form>
</body>
<script>
    var $ = layui.$,form= layui.form;
    var zxid = getQueryVariable('zxid');
    $.ajax({
        url:"/zixun/getDetail",
        data:{"zxid":zxid},
        success:function (res) {
            if(res.code==200){
                let obj = res.data;
                $("#zxname").val(obj.zxname);
                $("#zxphone").val(obj.zxphone);
                $("#zxqq").val(obj.zxqq);
                $("#school").val(obj.zxschool);
                if(obj.jiedairen)
                 $("#linkman").val(obj.jiedairen.jdname);
                $("#zxtime").val(obj.zxtime);
                $("#zxemail").val(obj.zxemail);
                $("#zxintent").val(obj.zxintent);
                $("#remark").val(obj.zxremark);
            }
        }
    })
    form.on("submit(close)",function (data) {
        parent.layui.layer.closeAll();
        return false;
    })

</script>
</html>